<?php
$server="localhost";

$database="basenotas";

$db_user="root";

$db_pass="Mariano1996";

 	$conexion = mysql_connect($server, $db_user, $db_pass) or die("Error 1".mysql_error());
	mysql_select_db($database) or die("Error 2".mysql_error());
		
		
		$ide=$_POST['id'];
		
		 mysql_query("UPDATE basenotas.NOTAS SET `ESTADO` = 'Inactivo' WHERE `ID` = $_POST[id];");
		 header("Location:  http://213.37.197.174/wordpress/");
?>
